//
//  UIView+Line.h
//  Demo1222
//
//  Created by xx on 15/12/28.
//  Copyright © 2015年 HzB. All rights reserved.
//


typedef NS_ENUM(NSInteger,PositionType)
{
    kTop_Type = 200,
    kBottom_Type,
};
static const CGFloat lineViewWidth = 1.0; //分隔线宽度
static const CGFloat linewViewHeight = 1.0; //横分隔线高度
#define kLineViewColor [UIColor colorWithRGB:213.0f G:213.0f B:213.0f] //分割线颜色

#import <UIKit/UIKit.h>
@interface UIView (Line)

+ (instancetype)lineView;

/**
 *  给view下面添加一条分割线
 */
- (UIView *)addLineViewPositionType:(PositionType)positionType;

/**
 *  给view下面添加一条分割线
 */
- (UIView *)addLineViewLeftSpace:(CGFloat)leftSpace
                      rightSpace:(CGFloat)rightSpace
                    positionType:(PositionType)positionType;

- (UIView *)addAplhaLeftSpace:(CGFloat)leftSpace rightSpace:(CGFloat)rightSpace positionType:(PositionType)positionType;

/**
 *  设置边框  以及弧度
 *
 *  @param corner    弧度
 *  @param lineColor 边框颜色
 *  @param isCorner  是否设置弧度
 */
-(void)addViewCornerRudis:(CGFloat)corner
             andLineColor:(UIColor *)lineColor
              andIsCorner:(BOOL)isCorner;
@end
